# 370100910---建筑大学道路---数据数据处理
import json
data_file = "370100910.json"
with open(data_file) as file:
    content = json.load(file)
# print(content)
new_data = {}
fclass_arr = []
road = {}
for item in content['features']:
    coordinates = []
    # print(item)
    # 道路类型
    # fclass = properties['fclass']
    # if fclass not in fclass_arr:
    #     fclass_arr.append(fclass)
    properties = item['properties']
    name = properties['name']
    if name in road:
        coordinates = road[name]

    geometry = item['geometry']
    coordinate = geometry['coordinates'][0]
    coordinates.append(coordinate)
    road[name] = coordinates
    
    # print(geometry)
# print("fclass")
# print(fclass_arr)
print(len(road))
for item in road:
    print(item)
    print(road[item])